/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const accountRouter = {
  path: '/account',
  component: Layout,
  name: '结算',
  meta: {
    title: '结算',
    icon: 'settkement',
    subtitle:'结算'
  },
  children: [
    {
      path: '',
      component: () => import('@/views/payment/list'),
      name: '客户结算',
      meta: { title: '客户结算', subtitle:'客户',icon: 'menu_account'},
      childrens:[
        {
          path: '/payment/list',
          meta: { title: '收款单', subtitle:'收款',icon: 'menu_payment' ,permissions:['payment.query'],color:'true'}
        },
        {
          path: '/refund/list',
          meta: { title: '退款单',subtitle:'退款', icon: 'menu_refund' ,permissions:['refund.query']}
        },
        {
          path: '/receivable/list',
          meta: { title: '应收款查询',subtitle:'应收款', icon: 'menu_receivable', permissions: ['receivable.query'] }
        },
        // {
        //   path: '/memberVerify/list',
        //   meta: { title: '客户对账单',subtitle:'对账单', icon: 'menu_receivable', permissions: ['verify0.query'] }
        // },
        {
          path: '/accountStatement/list',
          meta: { title: '对账单',subtitle:'对账单', icon: 'menu_receivable', permissions: ['verify0.query'] }
        }
      ]
    },
    {
      path: '',
      component: Layout,
      name: '供应商结算',
      meta: { title: '供应商结算', subtitle:'供应商结算',icon: 'menu_account'},
      childrens:[
        {
          path: '/transfer/payable/list',
          meta: { title: '付款单',subtitle:'付款', icon: 'menu_transfer' ,permissions:['transfer.query'],color:'true'}
        },
        {
          path: '/payable/list',
          meta: { title: '应付款查询',subtitle:'应付款查询', icon: 'menu_receivable', permissions: ['payable.query'] }
        },
        {
          path: '/supplierVerify/list',
          meta: { title: '供应商对账单', subtitle:'对账单',icon: 'menu_payment', permissions: ['verify1.query'] }
        },
      ]
    },
    {
      path: '',
      component: Layout,
      name: '财务结算',
      meta: { title: '财务结算', subtitle:'财务结算',icon: 'menu_account'},
      childrens:[
        {
          path: '/transfer/point/list',
          meta: { title: '提现记录',subtitle:'付款', icon: 'menu_transfer' ,permissions:['transfer.query'],color:'true'}
        },
        {
          path: '/fund/list',
          meta: { title: '分红基金',subtitle:'基金', icon: 'menu_receivable', permissions: ['transfer.query'] }
        },
      ]
    },
    {
      path: '',
      component: Layout,
      name: '营业汇总表',
      meta: { title: '营业汇总表', subtitle:'营业汇总表',icon: 'menu_account'},
      childrens:[
        {
          path: '/businessSummary/list',
          meta: { title: '营业日报表',subtitle:'营业', icon: 'menu_report',permissions:['businessSummary.query']}
        },
        {
          path: '/detailed/list',
          meta: { title: '收款明细表',subtitle:'营业', icon: 'menu_report',permissions:['businessSummary.query']}
        },
        {
          path: '/resultSaleReport/list',
          meta: { title: '业绩统计表',subtitle:'营业', icon: 'menu_report',permissions:['deliveryReport.query']}
        },
                {
          path: '/deliverymanReport/list',
          meta: { title: '送货结算表',subtitle:'营业', icon: 'menu_report',permissions:['deliveryReport.query']}
        },
      ]
    },

    // 注册路由
    {
      path: '/payment/list',
      component: () => import('@/views/payment/list'),
      name: 'payment-list',
      meta: { title: '收款单', subtitle:'收款',icon: 'menu_payment' ,permissions:['payment.query']},
      hidden: true
    },

    {
      path: '/payment/view',
      component: () => import('@/views/payment/view'),
      name: 'payment-view',
      meta: { title: '收款单详情', icon: 'menu_payment' },
      hidden: true
    },
    {
      path: '/refund/list',
      component: () => import('@/views/refund/list'),
      name: 'refund-list',
      meta: { title: '退款单',subtitle:'退款', icon: 'menu_refund' ,permissions:['refund.query']},
      hidden: true
    },
    {
      path: '/refund/view',
      component: () => import('@/views/refund/view'),
      name: 'refund-view',
      meta: { title: '退款单详情', icon: 'menu_refund' },
      hidden: true
    },
    {
      path: '/receivable/list',
      component: () => import('@/views/receivable/list'),
      name: 'receivable-list',
      meta: { title: '应收款查询',subtitle:'应收款', icon: 'menu_receivable', permissions: ['receivable.query'] },
      hidden: true
    },
    {
      path: '/receivable/detail',
      component: () => import('@/views/receivable/detail'),
      name: 'receivable-detail',
      meta: { title: '应收款明细',subtitle:'应收款', icon: 'menu_report',permissions:['receivable.query']},
      hidden: true
    },
    {
      path: '/receivable/add',
      component: () => import('@/views/receivable/add'),
      name: 'receivable-add',
      meta: { title: '新增收款单',subtitle:'新增收款单', icon: 'menu_receivable', permissions: ['receivable.add'] },
      hidden: true
    },
    {
      path: '/transfer/payable/list',
      component: () => import('@/views/transfer/payable/list'),
      name: 'transfer-payable-list',
      meta: { title: '付款单',subtitle:'付款', icon: 'menu_transfer' ,permissions:['transfer.query']},
      hidden: true
    },

    {
      path: '/transfer/payable/view',
      component: () => import('@/views/transfer/payable/view'),
      name: 'transfer-payable-view',
      meta: { title: '付款单详情', icon: 'menu_transfer' },
      hidden: true
    },
    {
      path: '/transfer/point/list',
      component: () => import('@/views/transfer/point/list'),
      name: 'transfer-point-list',
      meta: { title: '付款单',subtitle:'付款', icon: 'menu_transfer' ,permissions:['transfer.query']},
      hidden: true
    },

    {
      path: '/transfer/point/view',
      component: () => import('@/views/transfer/point/view'),
      name: 'transfer-point-view',
      meta: { title: '付款单详情', icon: 'menu_transfer' },
      hidden: true
    },
    {
      path: '/payable/list',
      component: () => import('@/views/payable/list'),
      name: 'payable-list',
      meta: { title: '应付款查询',subtitle:'应付款查询', icon: 'menu_receivable', permissions: ['payable.query'] },
      hidden: true
    },
    {
      path: '/payable/add',
      component: () => import('@/views/payable/add'),
      name: 'payable-add',
      meta: { title: '新增付款单',subtitle:'新增付款单', icon: 'menu_payable', permissions: ['payable.add'] },
      hidden: true
    },
    {
      path: '/receiveReport/list',
      component: () => import('@/views/receiveReport/list'),
      name: 'receiveReport-list',
      meta: { title: '营业汇总表',subtitle:'营业', icon: 'menu_report',permissions:['receiveReport.query']},
      hidden: true
    },
    {
      path: '/supplierVerify/list',
      component: () => import('@/views/supplierVerify/list'),
      name: 'supplierVerify-list',
      meta: { title: '供应商对账单', subtitle:'对账单',icon: 'menu_payment', permissions: ['verify1.query'] },
      hidden: true
    },

    {
      path: '/supplierVerify/add',
      component: () => import('@/views/supplierVerify/add'),
      name: 'supplierVerify-add',
      meta: { title: '新增供应商对账单', icon: 'menu_payment', permissions: ['verify1.add'] },
      hidden: true
    },
    {
      path: '/supplierVerify/edit',
      component: () => import('@/views/supplierVerify/edit'),
      name: 'supplierVerify-edit',
      meta: { title: '修改供应商对账单', icon: 'menu_payment', permissions: ['verify1.edit'] },
      hidden: true
    },
    {
      path: '/supplierVerify/view',
      component: () => import('@/views/supplierVerify/view'),
      name: 'supplierVerify-view',
      meta: { title: '对账单详情', icon: 'menu_payment' },
      hidden: true
    },

    {
      path: '/memberVerify/list',
      component: () => import('@/views/memberVerify/list'),
      name: 'memberVerify-list',
      meta: { title: '客户对账单', subtitle:'客户对账单',icon: 'menu_payment', permissions: ['verify0.query'] },
      hidden: true
    },

    {
      path: '/accountStatement/list',
      component: () => import('@/views/accountStatement/list'),
      name: 'accountStatement-list',
      meta: { title: '对账单', subtitle:'客户对账单',icon: 'menu_payment', permissions: ['verify0.query'] },
      hidden: true
    },

    {
      path: '/memberVerify/add',
      component: () => import('@/views/memberVerify/add'),
      name: 'memberVerify-add',
      meta: { title: '新增对账单', icon: 'menu_payment', permissions: ['verify0.add'] },
      hidden: true
    },
    {
      path: '/memberVerify/edit',
      component: () => import('@/views/memberVerify/edit'),
      name: 'memberVerify-edit',
      meta: { title: '修改对账单', icon: 'menu_payment', permissions: ['verify0.edit'] },
      hidden: true
    },
    {
      path: '/memberVerify/view',
      component: () => import('@/views/memberVerify/view'),
      name: 'memberVerify-view',
      meta: { title: '对账单详情', icon: 'menu_payment' },
      hidden: true
    },
    {
      path: '/businessSummary/list',
      component: () => import('@/views/businessSummary/list'),
      name: 'businessSummary-list',
      meta: { title: '营业汇总单', subtitle:'营业汇总单',icon: 'menu_payment', permissions: ['businessSummary.query'] },
      hidden: true
    },
    {
      path: '/detailed/list',
      component: () => import('@/views/detailed/list'),
      name: 'detailed-list',
      meta: { title: '收款明细表', subtitle:'收款明细表',icon: 'menu_payment', permissions: ['businessSummary.query'] },
      hidden: true
    },
    {
      path: '/resultSaleReport/list',
      component: () => import('@/views/resultSaleReport/list'),
      name: 'resultSaleReport-list',
      meta: { title: '业绩统计表',subtitle:'业绩统计表', icon: 'menu_report', permissions: ['businessSummary.query'] },
      hidden: true
    },
    {
      path: '/resultSaleReport/detailslist',
      component: () => import('@/views/resultSaleReport/detailslist'),
      name: 'resultSaleReport-detailslist',
      meta: { title: '业绩明细表',subtitle:'详情', icon: 'menu_report',permissions: ['businessSummary.query']},
      hidden: true
    },
    {
      path: '/fund/list',
      component: () => import('@/views/fund/list'),
      name: 'fund-list',
      meta: { title: '分红基金',subtitle:'基金', icon: 'menu_receivable', permissions: ['payable.query'] },
      hidden: true
    },
    {
      path: '/fund/view',
      component: () => import('@/views/fund/view'),
      name: 'fund-view',
      meta: { title: '基金流水',subtitle:'流水', icon: 'menu_receivable', permissions: ['payable.query'] },
      hidden: true
    },
    {
      path: '/deliverymanReport/list',
      component: () => import('@/views/deliverymanReport/list'),
      name: 'deliverymanReport-list',
      meta: { title: '送货结算表', subtitle:'送货统计表',icon: 'menu_payment', permissions: ['deliveryReport.query'] },
      hidden: true
    },
    {
      path: '/deliverymanReport/datailed',
      component: () => import('@/views/deliverymanReport/datailed'),
      name: 'deliverymanReport-datailed',
      meta: { title: '结算明细表', subtitle:'送货明细表',icon: 'menu_payment',},
      hidden: true
    },
  ]
};
export default accountRouter
